const baseUrl = 'http://slfcanyintest.shuashuakeji.com/'
const redirect_uri = 'http://127.0.0.1:8848/%E6%89%AB%E7%A0%81%E7%82%B9%E9%A4%90/index.html'
const imgUrl = 'http://slfcanyintestimg.shuashuakeji.com'
function http(url, data, callback, type = 'GET') {
	$.ajax({
		url: baseUrl + url,
		contentType: 'application/json',
		type,
		data: data ? JSON.stringify(data) : '',
		dataType: 'json',
		success: function(Data) {
			if (Data.Code == 1||Data.Code == 2) {
				callback(Data.Data)
			} else {
				alert(Data.Msg)
			}

		}
	})
}